<template>
  <div class="employee-container">
    员工管理
    <el-button>添加用户</el-button>
  </div>
</template>

<script>
import { addUser } from '@/api/user'
export default {
  name: 'Employee',
  created() {
    this.addUser()
  },
  methods: {
    async addUser() {
      const params = {
        'name': 'test',
        'userName': 'test2024',
        'roleId': 3421,
        'roleName': 'AA',
        'status': 1,
        'phonenumber': '19919036791'
      }
      await addUser(params)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
